import { Module } from "@nestjs/common"
import { ProgramController } from "./program.controller"
import { ProgramService } from "./program.service"
import { TypeOrmModule } from "@nestjs/typeorm"
import { ProgramEntity } from "./program.entity"
// 更改应用名同步更改授权库和盗版记录的应用名，先注入AuthorizationEntity和PiracyEntity
import { AuthorizationEntity } from "../authorization/authorization.entity"
import { PiracyEntity } from "../piracy/piracy.entity"

@Module({
  imports: [
    TypeOrmModule.forFeature([ProgramEntity, AuthorizationEntity, PiracyEntity])
  ],
  controllers: [ProgramController],
  providers: [ProgramService]
})
export class ProgramModule {}
